-
March 12th, 2026, 12:34 PM
#1
Senior Hostboard Member
Adding custom vars to email templates?
Adding custom vars to email templates? User email confirmation FRONTEND_URL use case
Hello,
I would like to be able to add custom vars to the e-mail templates of the user-permission confirmation and reset password templates.
I’m using Strapi v5 through an Astro front-end, so the Strapi confirm link will not be immediately visible to end users who need to click on the e-mail link.
A solution would be being able to define custom vars such as the provided <%= CODE %>, for example <%= FRONTEND_URL %> that would be available globally.
Without this, I think I need to hard code these values between dev and staging.
-
March 13th, 2026, 06:24 AM
#2
Senior Hostboard Member
Re: Adding custom vars to email templates?
You can add your own vars by extending the email plugin’s send call in a lifecycle or controller and passing FRONTEND_URL into the template context so it works like CODE.
-
March 13th, 2026, 06:25 AM
#3
Senior Hostboard Member
Re: Adding custom vars to email templates?
I’ve been growing my outreach lists faster lately by using scrape emails from linkedin to pull verified contacts without needing to log in or run extensions. The built‑in verification saved me a ton of bounces, and the background processing kept things moving while I worked on other tasks. The free credits made it easy to test without committing anything upfront.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks